package com.itheima.studenthomework.entry;

import com.itheima.studenthomework.controller.LoginController;
import com.itheima.studenthomework.controller.RegisterController;


import java.util.Scanner;

public class HeimaManager {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        //开始登录程序
        while (true) {
            System.out.println("=========黑马登录界面=========");
            System.out.println("1.登录");
            System.out.println("2.注册");
            System.out.println("3.退出");
            String str = sc.next();

            switch (str){
                case "1":
                    LoginController lg = new LoginController();
                    lg.login();
                    break;
                case "2":
                    RegisterController res = new RegisterController();
                    res.register();
                    break;
                case "3":
                    System.out.println("感谢您的使用！");
                    System.exit(0);
                default:
                    System.out.println("您的输入有误，请重新输入！");
            }
        }
    }
}
